package enmu;

/**
 * @author 清风明月
 * @Package enmu
 * @date 2025/6/6
 * @description 小说状态
 */
@SuppressWarnings("all")
public enum NovelStatus {
    SERIALIZATION(0, "连载"),
    COMPLETED(1, "完结"),
    BREAKING_UPDATES(2, "断更");

    private Integer status;
    private String statusName;

    NovelStatus(Integer status, String statusName) {
        this.status = status;
        this.statusName = statusName;
    }

    /**
     * 根据status获取名称
     */
    public static  String getStatusName(Integer status) {
        for (NovelStatus novelStatus : NovelStatus.values()) {
            if (novelStatus.status.equals(status)) {
                return novelStatus.statusName;
            }
        }
        return "未知的东西";
    }
}
